<?php

declare (strict_types=1);

namespace app\common\enum;

/**
 * 枚举类：金币类型
 * Class OrderType
 * @package app\common\enum
 */
class CointsType extends EnumBasics
{
    // 后台充值
    const ADMIN_RECHARGE = 100;
    //充值购买
    const RECHARGE = 200;
    //任务奖励
    const TASK_REWARD = 300;
    //充值赠送
    const REGISTER_DONATE = 400;
    //邀请赠送
    const INVITE_REWARD = 500;


    /**
     * 获取金币类型值
     * @return array
     */
    public static function data(): array
    {
        return [
            self::ADMIN_RECHARGE => [
                'name' => '后台充值',
                'value' => self::ADMIN_RECHARGE,
            ],
            self::RECHARGE => [
                'name' => '充值购买',
                'value' => self::RECHARGE,
            ],
            self::TASK_REWARD => [
                'name' => '任务奖励',
                'value' => self::TASK_REWARD,
            ],
            self::REGISTER_DONATE => [
                'name' => '新人注册赠送',
                'value' => self::REGISTER_DONATE,
            ],
            self::INVITE_REWARD => [
                'name' => '邀请奖励',
                'value' => self::INVITE_REWARD,
            ],

        ];
    }

}